/*************************************************************************
	> File Name: client.cpp
	> Author: ma6174
	> Mail: ma6174@163.com 
	> Created Time: 2021年12月08日 星期三 21时38分18秒
 ************************************************************************/

#include "command.h"
using namespace std;

int main()
{
	//开店前准备
	Barbecuer boy;
	Command* bakeMuttonCommand1 = new BakeMuttonCommand(boy);
	Command* bakeMuttonCommand2 = new BakeMuttonCommand(boy);
	Command* bakeChickenWingCommand1 = new BakeChickenWingCommand(boy);
	Command* bakeMuttonCommand3 = new BakeMuttonCommand(boy);

	Waiter girl;

	//开门营业
	girl.setOrder(bakeMuttonCommand1);

	girl.setOrder(bakeMuttonCommand2);

	girl.setOrder(bakeChickenWingCommand1);

	girl.setOrder(bakeMuttonCommand3);

	girl.cancelOrder(bakeMuttonCommand3);
	girl.notify();

	return 0;
}
